package com.demo.encrypt.web.controller;

import cn.licoy.encryptbody.annotation.encrypt.EncryptBody;
import cn.licoy.encryptbody.enums.EncryptBodyMethod;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EncryptBody(value = EncryptBodyMethod.AES)
@RequestMapping("/test")
public class TestController {
    @GetMapping
    public String test(){
        return "hello world";

    }
}
